package com.freemyleft.left.left_app.mian.index.my.mywallet.classfree;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;

import com.freemyleft.left.zapp.delegates.LeftDelegate;
import com.freemyleft.left.zapp.ui.recycler.DataConverter;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;

import java.util.ArrayList;

public class ClassFreeConvert extends DataConverter {
    ArrayList<MultipleItemEntity> entities = new ArrayList<>();

    @Override
    public ArrayList<MultipleItemEntity> convert() {
        int size = 5;
        for (int i = 0; i < 5; i++) {
            String name = "郭森 一年级 计算机";
            String price = "+￥100";
            String date = "2018-08-20 11:11:11";
            MultipleItemEntity entity = MultipleItemEntity.builder()
                    .setItemType(ClassFreeAdapter.CLASS_FREE_TYPE)
                    .setField(ClassFreeAdapter.ClassFreeFlies.NAME, name)
                    .setField(ClassFreeAdapter.ClassFreeFlies.PRICE, price)
                    .setField(ClassFreeAdapter.ClassFreeFlies.DATE, date)
                    .build();
            entities.add(entity);
        }

        return entities ;
    }
}
